package com.phone.service.impl;

import java.util.List;

import javax.transaction.Transactional;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.phone.dao.StoreDao;
import com.phone.entity.Product;
import com.phone.entity.Store;
import com.phone.service.StoreService;
@Service
@Transactional
public class StoreServiceimpl implements StoreService {
	@Autowired
	private StoreDao storedaoimpl;
	@Override
	public void addproduct(Product product) {
		storedaoimpl.addproduct(product);
	}

	@Override
	public List<Product> showproduct(int sid) {
		return storedaoimpl.showproduct(sid);
	}

	@Override
	public boolean upstore(Store store) {
		return storedaoimpl.upstore(store);
	}

}
